/*
 *             Copyright (C) 2024 Steve Jrong
 *
 * 	   GitHub Homepage: https://www.github.com/SteveJrong
 *      Gitee Homepage: https://gitee.com/stevejrong1024
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.stevejrong.waiter.rp.model.aggregates;

import java.time.LocalDateTime;

import com.stevejrong.waiter.rp.model.valueobjects.Status;
import com.stevejrong.waiter.rp.model.valueobjects.administrator.Administrator;

import lombok.Data;

/**
 * 聚合根（根实体） - 系统超级管理员权限
 *
 * @author Steve Jrong
 * @since 1.0
 */
@Data
public class AdministratorPermission {
    private Long id; // 系统超级管理员权限ID，同时也是聚合根（根实体）ID
    private LocalDateTime createAt; // 创建时间，是普通属性
    private LocalDateTime updateAt; // 更新时间，是普通属性

    private String name; // 系统超级管理员的后端权限名称
    private String description; // 系统超级管理员的后端权限描述
    private String permUrl; // 系统超级管理员的后端权限地址后缀
    private String permCode; // 系统超级管理员的后端权限代码

    private Status status; // 系统超级管理员状态为枚举类型，是值对象
    private Administrator administrator; // 系统超级管理员权限所属的系统超级管理员，是值对象
}